/**
 * Created by Cai Ye on 2016/3/19.
 */
import java.util.Scanner;

public class Sum {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        float sum=0;
        float number=0;
        do {
            System.out.print("输入数字：");
            number=Float.parseFloat(scanner.nextLine());
            sum+=number;
        }while (number!=0);
        System.out.println("总和："+sum);
    }
}
